package com.javabi.common.concurrent.lock;

import java.util.concurrent.locks.Lock;

public interface ILockFactory<K> {

	/**
	 * Returns the lock for the given key. A non-null lock will be returned for any key, however the locks are not
	 * guaranteed to be unique.
	 */
	Lock getLock(K key);

}
